﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using PureMVC.Patterns;
using PureMVC.Interfaces;
using GameEngine.Clients.Silverlight.View;
using GameEngine.Model.Data;
using GameEngine.Clients.Silverlight;
using GameEngine.Clients.Silverlight.View.Components;
using GameEngine.Model;
using MySettlers.View;
using MySettlers.View.Components;

namespace MySettlers.Commands
{
    public class Page_GameLoad_In_Command : SimpleCommand
    {
        override public void Execute(INotification notification)
        {
            //load game
            //SendNotification(MyFacade.PAGE_GAME_IN_COMMAND, game);
        }
    }

    public class Page_GameLoad_Out_Command : SimpleCommand
    {
        override public void Execute(INotification notification)
        {
            //IGameVO<int> game = notification.Body as IGameVO<int>;
            //if (game == null)
            //{
            //    game = MyFacade.Instance.CreateGame();//TODO isto n vai existir
            //}
            //SilverlightApplicationFacadeHelper<GameUC, LevelUC>.StartGame(game);
            
            ////    Thinking
            //WorldUC worldView = SilverlightViewFacade<GameUC, LevelUC>.Helper.GetWorldView(new WorldVOId("MyWorld"));

            //MyViewFacade.Helper.GetGameView().SetWorldView(worldView);

            ////TODO create helperclasses like screenmanager
            //MyFacade.Instance.SetScreen(MyViewFacade.Helper.GetGameView());
            
            //switch (notification.Type)
            //{

            //}
        }
    }
}
